package com.bkhech.home.practice.spring.el.bean_ref;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author guowm
 * @date 2023/1/16
 */
@Data
public class AddressBean {

    @Value("Block ABC, LakeView")
    private String street;
    @Value("98700")
    private int postcode;
    @Value("US")
    private String country;

    public String getFullAddress(String prefix) {
        return prefix + " : " + street + " " + postcode + " " + country;
    }

}
